<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .box {
      width: 100%;
      height: 600px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
    .blue {
      background-color: blue;
    }
    .green {
      background-color: green;
    }
    .red {
      background-color: red;
      justify-content: flex-end;
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="item blue">1</div>
    <div class="item green">2</div>
    <div class="item red">3</div>
  </div>
  <div>11111111</div>
  <div id="test"></div>
  <script>
    console.warn('support fetch', !!fetch);
    var myHeaders = new Headers();
    myHeaders.append("Content-Type", "application/x-www-form-urlencoded")
    var myInit = {
      method: 'POST',
      headers: myHeaders,
      mode: 'cors',
      cache: 'default'
    };
    fetch('/api/wx/company/login', myInit)
      .then(function(response) {
        return response.json();
      })
      .then(function(json) {
        document.querySelector('#test').innerText = JSON.stringify(json);
      });
  </script>
</body>
</html>